package metrica;

/**
 *
 * @author e235166
 */
public abstract class DistanciaVectorial extends Distancia<Double[]> {
    @Override
    public double distancia(Double[] a, Double[] b)
    {
        if(a.length != b.length)
        {
            throw new RuntimeException("Los dos puntos dados no tienen la misma dimension: " + a.length + " vs " + b.length);
        }
        
        return distanciaVectorial(a,b);
    }
    
    protected abstract double distanciaVectorial(Double[] a, Double[] b);    
}
